
#九九乘法表(while 1)
print("="*80,end="")
print()
j=1
while j<10:
    i=1
    while i<j+1:
        print("{}*{}={:<4}".format(i,j,i*j),end="")
        i+=1
    print("")
    j+=1
print("="*80,end="")
print()


#九九乘法表(while 2)

print("="*80,end="")
print()
j=9
while j>0:
    i=1
    while i<j+1:
        print("{}*{}={:<4}".format(i,j,i*j),end="")
        i+=1
    print("")
    j-=1
print("="*80,end="")
print()


#九九乘法表(while 3)

print("="*80,end="")
print()
j=9
while j>0:
    i=9
    while i>0:
        if i>j:
            print("        ",end="")
        else:
            print("{}*{}={:<4}".format(i,j,i*j),end="")
        i-=1
    print("")
    j-=1
print("="*80,end="")
print()


#九九乘法表(while 4)

print("="*80,end="")
print()
j=1
while j<10:
    i=9
    while i>0:
        if i>j:
            print("        ",end="")
        else:
            print("{}*{}={:<4}".format(i,j,i*j),end="")
        i-=1
    print("")
    j+=1
print("="*80,end="")
print()


